// 嵌套语句

#include <stdio.h>

int main(int argc, char const *argv[])
{
    int a, b, c, max;
    scanf("%d %d %d", &a, &b, &c);
    /*
    max = a > b ? a : b;
    max = max > c ? max : c;
    */

    if (a > b)
    {
        if (a > c)
        {
            max = a;
        }
        else
        {
            max = c;
        }
    }
    else
    {
        if (b > c)
        {
            max = b;
        }
        else
        {
            max = c;
        }
    }

    printf("%d\n", max);
    
    return 0;
}